package crazy.memory;

public class FinalStaticTest
{
	final static String str1;
	final static String str2 = "Java";//在定义时指定初始值，可以执行“宏替换”
	
	static 
	{
		str1 = "Java";
	}
	
	public static void main(String[] args)
	{
		System.out.println(str1 + str1 == "JavaJava");
		System.out.println(str2 + str2 == "JavaJava");//System.out.println("Java" + "Java" == "JavaJava");
	}
}
